<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AceCRC: /home/brian/src/AceCRC/src/ace_crc/crc32_nibble.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AceCRC
   &#160;<span id="projectnumber">1.1.1</span>
   </div>
   <div id="projectbrief">Cyclic Redundancy Check (CRC) algorithms (e.g. crc16ccitt, crc32) programmatically converted from C99 code generated by pycrc (https://pycrc.org) to Arduino C++ using namespaces and PROGMEM flash memory.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_7e2fca1243a23cea849d389c30292e19.html">ace_crc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">crc32_nibble.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Functions and types for CRC checks.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;pgmspace.h&gt;</code><br />
<code>#include &quot;<a class="el" href="crc32__nibble_8hpp_source.html">crc32_nibble.hpp</a>&quot;</code><br />
<code>#include &lt;stdlib.h&gt;</code><br />
<code>#include &lt;stdint.h&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for crc32_nibble.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="crc32__nibble_8cpp__incl.png" border="0" usemap="#a_2home_2brian_2src_2AceCRC_2src_2ace__crc_2crc32__nibble_8cpp" alt=""/></div>
<map name="a_2home_2brian_2src_2AceCRC_2src_2ace__crc_2crc32__nibble_8cpp" id="a_2home_2brian_2src_2AceCRC_2src_2ace__crc_2crc32__nibble_8cpp">
<area shape="rect" title="Functions and types for CRC checks." alt="" coords="91,5,301,47"/>
<area shape="rect" title=" " alt="" coords="5,95,107,121"/>
<area shape="rect" href="crc32__nibble_8hpp.html" title="Functions and types for CRC checks." alt="" coords="182,95,314,121"/>
<area shape="rect" title=" " alt="" coords="163,169,234,196"/>
<area shape="rect" title=" " alt="" coords="262,169,333,196"/>
</map>
</div>
</div>
<p><a href="crc32__nibble_8cpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aaf3fde0c9f7019f7ae1fcb386ffa20b5"><td class="memItemLeft" align="right" valign="top">crc_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="crc32__nibble_8cpp.html#aaf3fde0c9f7019f7ae1fcb386ffa20b5">ace_crc::crc32_nibble::crc_reflect</a> (crc_t data, size_t data_len)</td></tr>
<tr class="memdesc:aaf3fde0c9f7019f7ae1fcb386ffa20b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reflect all bits of a <em>data</em> word of <em>data_len</em> bytes.  <a href="crc32__nibble_8cpp.html#aaf3fde0c9f7019f7ae1fcb386ffa20b5">More...</a><br /></td></tr>
<tr class="separator:aaf3fde0c9f7019f7ae1fcb386ffa20b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c60d3ee23ae9b9bab6ef4bfa9434563"><td class="memItemLeft" align="right" valign="top">crc_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="crc32__nibble_8cpp.html#a0c60d3ee23ae9b9bab6ef4bfa9434563">ace_crc::crc32_nibble::crc_update</a> (crc_t crc, const void *data, size_t data_len)</td></tr>
<tr class="memdesc:a0c60d3ee23ae9b9bab6ef4bfa9434563"><td class="mdescLeft">&#160;</td><td class="mdescRight">Update the crc value with new data.  <a href="crc32__nibble_8cpp.html#a0c60d3ee23ae9b9bab6ef4bfa9434563">More...</a><br /></td></tr>
<tr class="separator:a0c60d3ee23ae9b9bab6ef4bfa9434563"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Functions and types for CRC checks. </p>
<p>Generated on Fri Feb 3 16:16:47 2023 by pycrc v0.10.0, <a href="https://pycrc.org">https://pycrc.org</a> using the configuration:</p><ul>
<li>Width = 32</li>
<li>Poly = 0x04c11db7</li>
<li>XorIn = 0xffffffff</li>
<li>ReflectIn = True</li>
<li>XorOut = 0xffffffff</li>
<li>ReflectOut = True</li>
<li>Algorithm = table-driven</li>
</ul>
<p>Auto converted to Arduino C++ on Fri Feb 3 16:16:47 PST 2023 by AceCRC (<a href="https://github.com/bxparks/AceCRC">https://github.com/bxparks/AceCRC</a>). DO NOT EDIT </p>

<p class="definition">Definition in file <a class="el" href="crc32__nibble_8cpp_source.html">crc32_nibble.cpp</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="aaf3fde0c9f7019f7ae1fcb386ffa20b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf3fde0c9f7019f7ae1fcb386ffa20b5">&#9670;&nbsp;</a></span>crc_reflect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">crc_t ace_crc::crc32_nibble::crc_reflect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="crc32__nibble_8hpp.html#aae1f57fd0abc8915e312ebb7e665b14d">crc_t</a>&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>data_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reflect all bits of a <em>data</em> word of <em>data_len</em> bytes. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>The data word to be reflected. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">data_len</td><td>The width of <em>data</em> expressed in number of bits. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The reflected data. </dd></dl>

<p class="definition">Definition at line <a class="el" href="crc32__nibble_8cpp_source.html#l00043">43</a> of file <a class="el" href="crc32__nibble_8cpp_source.html">crc32_nibble.cpp</a>.</p>

</div>
</div>
<a id="a0c60d3ee23ae9b9bab6ef4bfa9434563"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c60d3ee23ae9b9bab6ef4bfa9434563">&#9670;&nbsp;</a></span>crc_update()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">crc_t ace_crc::crc32_nibble::crc_update </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="crc32__nibble_8hpp.html#aae1f57fd0abc8915e312ebb7e665b14d">crc_t</a>&#160;</td>
          <td class="paramname"><em>crc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>data_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Update the crc value with new data. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">crc</td><td>The current crc value. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>Pointer to a buffer of <em>data_len</em> bytes. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">data_len</td><td>Number of bytes in the <em>data</em> buffer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The updated crc value. </dd></dl>

<p class="definition">Definition at line <a class="el" href="crc32__nibble_8cpp_source.html#l00057">57</a> of file <a class="el" href="crc32__nibble_8cpp_source.html">crc32_nibble.cpp</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
